#define _CRT_SECURE_NO_WARNINGS
#include "Tree.h"
#include "TreeNode.h"
#include <stdio.h>
#include <stdlib.h>

int main()
{
	Tree* A =(Tree*)malloc(sizeof(Tree));
	A->data = 'A';
	A->Left = NULL;
	A->Right = NULL;
	Tree* B = (Tree*)malloc(sizeof(Tree));
	B->data = 'B';
	B->Left = NULL;
	B->Right = NULL;
	Tree* C = (Tree*)malloc(sizeof(Tree));
	C->data = 'C';
	C->Left = NULL;
	C->Right = NULL;
	Tree* D = (Tree*)malloc(sizeof(Tree));
	D->data = 'D';
	D->Left = NULL;
	D->Right = NULL;
	Tree* E = (Tree*)malloc(sizeof(Tree));
	E->data = 'E';
	E->Left = NULL;
	E->Right = NULL;
	Tree* F = (Tree*)malloc(sizeof(Tree));
	F->data = 'F';
	F->Left = NULL;
	F->Right = NULL;
	A->Left = B;
	A->Right = C;
	B->Left = D;
	B->Right = E;
	D->Right = F;
	PreOrder(A);
	printf("\n");
	InOrder(A);
	printf("\n");
	PostOrder(A);

	
}